package com.po.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.po.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author zxw
 * @date 2020/7/28 22:15
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    @Select("select * from article where link_url = #{url}")
    Article findByUrl(@Param("url") String url);
}
